-- GENERATED SPELL FOR [Mutated Tangler] --


function spell0_17346(pUnit, Event) --@Entangling Roots,n/a--
pUnit:FullCastSpellOnTarget(31287,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17346', 3500, 1)
end

function Sorts_17346(pUnit, Event)
local choix_sorts_17346 = math.random(0, 0)
if choix_sorts_17346 == 0 then
pUnit:RegisterEvent('spell0_17346', 1, 1)
end
end

function mob17346_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17346', math.random(1500, 3000), 1)
end

function mob17346_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17346_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17346_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17346, 1, 'mob17346_Action')
RegisterUnitEvent(17346, 2, 'mob17346_Leave')
RegisterUnitEvent(17346, 3, 'mob17346_Kill')
RegisterUnitEvent(17346, 4, 'mob17346_Die')
